# coding=utf-8
# Copyright 2019 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from gfootball.eval_server.proto import master_pb2 as gfootball_dot_eval__server_dot_proto_dot_master__pb2


class MasterStub(object):
  # missing associated documentation comment in .proto file
  pass

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.StartGame = channel.unary_unary(
        '/gfootball.eval_server.Master/StartGame',
        request_serializer=gfootball_dot_eval__server_dot_proto_dot_master__pb2.StartGameRequest.SerializeToString,
        response_deserializer=gfootball_dot_eval__server_dot_proto_dot_master__pb2.StartGameResponse.FromString,
        )


class MasterServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def StartGame(self, request, context):
    """Starts a game, returns side id and game server address.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_MasterServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'StartGame': grpc.unary_unary_rpc_method_handler(
          servicer.StartGame,
          request_deserializer=gfootball_dot_eval__server_dot_proto_dot_master__pb2.StartGameRequest.FromString,
          response_serializer=gfootball_dot_eval__server_dot_proto_dot_master__pb2.StartGameResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'gfootball.eval_server.Master', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
